import { ImageMaps } from '@h5app/sheep/interface'
import { ref } from 'vue'

// interface ScrollOptions {
//   refresh?: boolean;
// }

export function useScroll() {
  const mescroll = ref<MescrollUni.mescroll>()

  const upOptions = {
    use: true,

    empty: {
      icon: ImageMaps.ScrollEmpty,
    },
  }
  const downOptions = {
    use: true,
    // onScroll: true,
  }

  const options = {
    up: upOptions,
    down: downOptions,
    // safeArea: false,
    // bottomBar: false,
  }

  return { options, mescroll }
}
